package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 地区表
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class RegionDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地区ID
     */
        private Integer regionId;
        /**
     * 地区代码
     */
        private String regionCode;
        /**
     * 地区中文名称
     */
        private String regionName;
        /**
     * 地区英文名称
     */
        private String regionEname;
        /**
     * 国家、省份、城市、区县
     */
        private Integer regionType;
        /**
     * 父区域ID
     */
        private Integer parentRegionId;
            private Boolean isDeleted;
    
    public RegionDTO() {
        super();
    }




    public Integer getRegionId() {
        return regionId;
    }


    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }



    public String getRegionCode() {
        return regionCode;
    }


    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }



    public String getRegionName() {
        return regionName;
    }


    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }



    public String getRegionEname() {
        return regionEname;
    }


    public void setRegionEname(String regionEname) {
        this.regionEname = regionEname;
    }



    public Integer getRegionType() {
        return regionType;
    }


    public void setRegionType(Integer regionType) {
        this.regionType = regionType;
    }



    public Integer getParentRegionId() {
        return parentRegionId;
    }


    public void setParentRegionId(Integer parentRegionId) {
        this.parentRegionId = parentRegionId;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "RegionDTO{" +
        "regionId=" + regionId +
        ", regionCode=" + regionCode +
        ", regionName=" + regionName +
        ", regionEname=" + regionEname +
        ", regionType=" + regionType +
        ", parentRegionId=" + parentRegionId +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "regionId");
    }

}
